package com.atgouwu.scmall.cart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@EnableRedisHttpSession //开启SpringSession分布式session共享
@EnableFeignClients(basePackages = "com.atgouwu.scmall.cart.feign") //开启openfeign远程调用(扫描feign包)
@EnableDiscoveryClient //开启nacos注册发现
@SpringBootApplication
public class CartApplication {

    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
        System.out.println("购物车服务启动成功!");
    }

}
